package com.example.onlinemusic.tools;

import lombok.Data;
import sun.dc.pr.PRError;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LXW
 * Date: 2022-07-24
 * Time: 20:11
 */
@Data
public class ResponseBodyMessage <T>{
    // 状态码
    private int state;
    // 状态码描述信息
    private String message;
    // 返回给前端的数据
    private T data;

    public ResponseBodyMessage(int state, String message, T data) {
        this.state = state;
        this.message = message;
        this.data = data;
    }
}
